﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace lucky_ticket
{
    class Program
    {
        static void Main(string[] args)
        {
            int[] num = new int[6];

            Console.WriteLine("enter six numbers");

            num[0] = Int32.Parse(Console.ReadLine());
            num[1] = Int32.Parse(Console.ReadLine());
            num[2] = Int32.Parse(Console.ReadLine());
            num[3] = Int32.Parse(Console.ReadLine());
            num[4] = Int32.Parse(Console.ReadLine());
            num[5] = Int32.Parse(Console.ReadLine());

            if (num[0]+num[1]+num[2]==num[3]+num[4]+num[5])
            {
                Console.WriteLine("lucky ticket");
            }
            else
            {
                Console.WriteLine("unlucky ticket");
            }

            Console.ReadKey();

        }
    }
}
